<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ include file="../common/top.jsp" %>
<div id="Catalog">
    <form action="editAccount" method="post">
        <c:if test="${requestScope.editMsg != null}">
            <div><font color="#1e90ff">${requestScope.editMsg} </font></div>
        </c:if>
        <h2>用户信息</h2>
        <table id="accountForm">
            <tr>
                <td>账号:</td>
                <td>${sessionScope.account.username}</td>
            </tr>
            <tr>
                <td>新密码:</td>
                <td>
                    <input type="password" name="password" id="newPassword"><br/>
<%--                    <span class="error-msg">${requestScope.msg_password}</span>--%>
                    <div id="newPasswordMsg"></div>
                </td>
            </tr>
            <tr>
                <td>再次输入:</td>
                <td>
                    <input type="password" name="repeatedPassword" id="repeatNewPassword"><br/>
<%--                    <span class="error-msg">${requestScope.msg_repeated_password}</span>--%>
                    <div id="repeatNewPasswordMsg"></div>
                </td>
            </tr>
        </table>

        <%@include file="accountFields.jsp" %>
        <br>
        <br>
        <input type="submit" name="editAccount" value="保存所有信息"/>
    </form>
    <br>
    <br>
    <a href="listOrders?username=${sessionScope.account.username}">我的订单</a>
</div>
<br>
<br>
<script type="text/javascript" src="./js/editAccount.js"></script>
<%@ include file="../common/bottom.jsp" %>
